package com.tonggedata.dataapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tonggedata.dataapi.entity.ApiBizConsumer;
import com.tonggedata.dataapi.dto.ApiBizConsumerDto;
import com.tonggedata.dataapi.dto.ApiBizConsumerParamDto;
import org.apache.dolphinscheduler.api.utils.Result;
import org.apache.dolphinscheduler.dao.entity.User;

import java.util.Map;

/**
 * ==================================================
 *
 * @author : tonggedata
 * @fileName:
 * @create : 2022-06-19 13:08:47
 * @Description： api业务应用名称，网关consumer
 * ==================================================
 * @since 1.0.0
 */
public interface ApiBizConsumerService extends IService<ApiBizConsumer> {

    Result queryApiBizConsumerListPaging(User loginUser, String searchVal, Integer pageNo, Integer pageSize);

    Map<String, Object> queryApiBizConsumerList(User loginUser, String name);

    Map<String, Object> queryApiBizConsumer(long id);

    Result<Object> updateApiBizConsumer(long id, User loginUser, ApiBizConsumerParamDto apiBizConsumerParam);

    Result<Object> delete(User loginUser, long id);

    Result<Object> createApiBizConsumer(User loginUser, ApiBizConsumerParamDto apiBizConsumerParam);


}
